package com.moliku.insurance.model.entity.axa;

import lombok.Data;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author 七分
 * @version 1.0
 * @date 2021/3/10 9:32
 * @effect
 */
@Data
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
@XmlType(name = "Party", propOrder = {
        "partyTypeCode",
        "roleTypeCode",
        "fullName",
        "gender",
        "birthDate",
        "certiType",
        "certiNo",
        "relApplicant", "persPhone", "email"})
public class AxaParty implements Serializable {
    private static final long serialVersionUID = -2855267954248786494L;


    public static final Map<String, String> map = new HashMap<>();

    static {
        map.put("1", "01");
        map.put("3", "02");
        map.put("4", "03");
        map.put("99", "04");
        map.put("72", "07");
        map.put("9", "08");
        map.put("10", "08");

    }


    /**
     * 当事人类型 1公司 2 组织 目前为1
     */
    @XmlElement(required = true, name = "partyTypeCode")
    private String partyTypeCode;
    /**
     * 角色类型 001 被保险人 002 投保人
     */
    @XmlElement(required = true, name = "roleTypeCode")
    private String roleTypeCode;
    /**
     * 投保人姓名
     */
    @XmlElement(required = true, name = "fullName")
    private String fullName;
    /**
     * 性别  1男 2女
     */
    @XmlElement(required = true, name = "gender")
    private String gender;
    /**
     * 生日
     */
    @XmlElement(required = true, name = "birthDate")
    private String birthDate;
    /**
     * 证件类型：
     * 01-身份证；
     * 02-护照；
     * 03-军官证；
     * 04-其他
     * 07-组织机构代码证；
     * 08-港澳台证
     */
    @XmlElement(required = true, name = "certiType")
    private String certiType;
    /**
     * 证件号码
     */
    @XmlElement(required = true, name = "certiNo")
    private String certiNo;
    /**
     * 与投保人关系
     * 1本人  2配偶 3 子女 4父母  5其他
     */
    @XmlElement(required = true, name = "relApplicant")
    private String relApplicant;
    /**
     * 个人电话
     */
    @XmlElement(required = true, name = "persPhone")
    private String persPhone;
    /**
     * 邮箱
     */
    @XmlElement(required = true, name = "email")
    private String email;

}
